package com.fishery.base.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fishery.base.entity.GermchitManagement;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fishery.base.entity.vo.BaseGermchitAmountVo;
import com.fishery.base.entity.vo.BaseGermchitVo;
import com.fishery.base.entity.vo.GermchitOrderVo;

import java.util.List;

/**
 * <p>
 *  基地种苗管理服务类
 * </p>
 *
 * @author Ghost
 * @since 2021-01-15
 */
public interface GermchitManagementService extends IService<GermchitManagement> {

	/**
	 * 购买种苗
	 * @param germchitOrderVo
	 * @return
	 */
	boolean purchaseGermchit(GermchitOrderVo germchitOrderVo);

	/**
	 * 通过基地ID获取基地里所有种苗的信息
	 * @param baseId
	 * @return
	 */
	List<BaseGermchitVo> getAllGermchitInfo(String baseId);

	/**
	 * 通过基地ID获取基地里所有种苗的信息（带分页）
	 * @param baseId
	 * @param size
	 * @param current
	 * @return
	 */
	Page<BaseGermchitVo> getAllGermchitInfoWithPage(String baseId, int size, int current);

	/**
	 * 通过基地ID获取基地种苗的相关数量信息
	 * @param baseId
	 * @return
	 */
	List<BaseGermchitAmountVo> getAmountInfoOfGermchit(String baseId);
}
